package com.cooper.service.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cooper.dao.admin.InvitationDAO;

@Service
public class InvitationService {
	
	@Autowired
	private InvitationDAO invitationDao;
	
	public boolean checkIfExists(String code) throws Exception{
		int count = this.invitationDao.queryCount(code);
		return count > 0;
	}

}
